package com.ruoyi.doc.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.sql.Timestamp;

/**
 * 文档对象 content
 * 
 * @author yuanpingfang
 * @date 2021-03-31
 */
public class Content extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文档标识 */
    @Excel(name = "文档标识")
    private String contentId;

    /** 文档类型 */
    @Excel(name = "文档类型")
    private String contentTypeId;

    /** 拥有者内容标识 */
    private String ownerContentId;

    /** 装饰文档标识 */
    private String decoratorContentId;

    /** 文档标识实例 */
    private String instanceOfContentId;

    /** 数据资源标识 */
    private String dataResourceId;

    /** 附件 */
    private String objectInfo;

    /** 模板数据资源标识 */
    private String templateDataResourceId;

    /** 数据源标识 */
    private String dataSourceId;

    /** 文档状态 */
    @Excel(name = "文档状态")
    private String statusId;

    /** 特权枚举标识 */
    private String privilegeEnumId;

    /** 服务名称 */
    private String serviceName;

    /** 自定义方法标识 */
    private String customMethodId;

    /** 文档名称 */
    @Excel(name = "文档名称")
    private String contentName;

    /** 文档描述 */
    @Excel(name = "文档描述")
    private String description;

    /** 语言字符串 */
    private String localeString;

    /** Mime类型标识 */
    private String mimeTypeId;

    /** 字符集标识 */
    private String characterSetId;

    /** 下级内容资源计数 */
    private Long childLeafCount;

    /** 下级分支计数 */
    private Long childBranchCount;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Timestamp createdDate;

    /** 创建人标识 */
    @Excel(name = "创建人标识")
    private String createdByUserLogin;

    /** 上次修改日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次修改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Timestamp lastModifiedDate;

    /** 上次修改用户 */
    @Excel(name = "上次修改用户")
    private String lastModifiedByUserLogin;

    /** 最后更新时间 */
    private Timestamp lastUpdatedStamp;

    /** 最后更新事务时间 */
    private Timestamp lastUpdatedTxStamp;

    /** 创建时间 */
    private Timestamp createdStamp;

    /** 创建事务时间 */
    private Timestamp createdTxStamp;

    /** 版本 */
    private String version;

    /** 机构或用户ID*/
    private String partyId;


    /** 上级文件夹*/
    private String parentFolderId;


    public String getPartyId() {
        return partyId;
    }

    public void setPartyId(String partyId) {
        this.partyId = partyId;
    }


    public String getParentFolderId() {
        return parentFolderId;
    }

    public void setParentFolderId(String parentFolderId) {
        this.parentFolderId = parentFolderId;
    }
    public void setContentId(String contentId) 
    {
        this.contentId = contentId;
    }

    public String getContentId() 
    {
        return contentId;
    }
    public void setContentTypeId(String contentTypeId) 
    {
        this.contentTypeId = contentTypeId;
    }

    public String getContentTypeId() 
    {
        return contentTypeId;
    }
    public void setOwnerContentId(String ownerContentId) 
    {
        this.ownerContentId = ownerContentId;
    }

    public String getOwnerContentId() 
    {
        return ownerContentId;
    }
    public void setDecoratorContentId(String decoratorContentId) 
    {
        this.decoratorContentId = decoratorContentId;
    }

    public String getDecoratorContentId() 
    {
        return decoratorContentId;
    }
    public void setInstanceOfContentId(String instanceOfContentId) 
    {
        this.instanceOfContentId = instanceOfContentId;
    }

    public String getInstanceOfContentId() 
    {
        return instanceOfContentId;
    }
    public void setDataResourceId(String dataResourceId) 
    {
        this.dataResourceId = dataResourceId;
    }

    public String getDataResourceId() 
    {
        return dataResourceId;
    }
    public void setTemplateDataResourceId(String templateDataResourceId) 
    {
        this.templateDataResourceId = templateDataResourceId;
    }

    public String getObjectInfo() {
        return objectInfo;
    }

    public void setObjectInfo(String objectInfo) {
        this.objectInfo = objectInfo;
    }

    public String getTemplateDataResourceId() 
    {
        return templateDataResourceId;
    }
    public void setDataSourceId(String dataSourceId) 
    {
        this.dataSourceId = dataSourceId;
    }

    public String getDataSourceId() 
    {
        return dataSourceId;
    }
    public void setStatusId(String statusId) 
    {
        this.statusId = statusId;
    }

    public String getStatusId() 
    {
        return statusId;
    }
    public void setPrivilegeEnumId(String privilegeEnumId) 
    {
        this.privilegeEnumId = privilegeEnumId;
    }

    public String getPrivilegeEnumId() 
    {
        return privilegeEnumId;
    }
    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }
    public void setCustomMethodId(String customMethodId) 
    {
        this.customMethodId = customMethodId;
    }

    public String getCustomMethodId() 
    {
        return customMethodId;
    }
    public void setContentName(String contentName) 
    {
        this.contentName = contentName;
    }

    public String getContentName() 
    {
        return contentName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setLocaleString(String localeString) 
    {
        this.localeString = localeString;
    }

    public String getLocaleString() 
    {
        return localeString;
    }
    public void setMimeTypeId(String mimeTypeId) 
    {
        this.mimeTypeId = mimeTypeId;
    }

    public String getMimeTypeId() 
    {
        return mimeTypeId;
    }
    public void setCharacterSetId(String characterSetId) 
    {
        this.characterSetId = characterSetId;
    }

    public String getCharacterSetId() 
    {
        return characterSetId;
    }
    public void setChildLeafCount(Long childLeafCount) 
    {
        this.childLeafCount = childLeafCount;
    }

    public Long getChildLeafCount() 
    {
        return childLeafCount;
    }
    public void setChildBranchCount(Long childBranchCount) 
    {
        this.childBranchCount = childBranchCount;
    }

    public Long getChildBranchCount() 
    {
        return childBranchCount;
    }
    public void setCreatedDate(Timestamp createdDate) 
    {
        this.createdDate = createdDate;
    }

    public Timestamp getCreatedDate() 
    {
        return createdDate;
    }
    public void setCreatedByUserLogin(String createdByUserLogin) 
    {
        this.createdByUserLogin = createdByUserLogin;
    }

    public String getCreatedByUserLogin() 
    {
        return createdByUserLogin;
    }
    public void setLastModifiedDate(Timestamp lastModifiedDate) 
    {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Timestamp getLastModifiedDate() 
    {
        return lastModifiedDate;
    }
    public void setLastModifiedByUserLogin(String lastModifiedByUserLogin) 
    {
        this.lastModifiedByUserLogin = lastModifiedByUserLogin;
    }

    public String getLastModifiedByUserLogin() 
    {
        return lastModifiedByUserLogin;
    }
    public void setLastUpdatedStamp(Timestamp lastUpdatedStamp) 
    {
        this.lastUpdatedStamp = lastUpdatedStamp;
    }

    public Timestamp getLastUpdatedStamp() 
    {
        return lastUpdatedStamp;
    }
    public void setLastUpdatedTxStamp(Timestamp lastUpdatedTxStamp) 
    {
        this.lastUpdatedTxStamp = lastUpdatedTxStamp;
    }

    public Timestamp getLastUpdatedTxStamp() 
    {
        return lastUpdatedTxStamp;
    }
    public void setCreatedStamp(Timestamp createdStamp) 
    {
        this.createdStamp = createdStamp;
    }

    public Timestamp getCreatedStamp() 
    {
        return createdStamp;
    }
    public void setCreatedTxStamp(Timestamp createdTxStamp) 
    {
        this.createdTxStamp = createdTxStamp;
    }

    public Timestamp getCreatedTxStamp() 
    {
        return createdTxStamp;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("contentTypeId", getContentTypeId())
            .append("ownerContentId", getOwnerContentId())
            .append("decoratorContentId", getDecoratorContentId())
            .append("instanceOfContentId", getInstanceOfContentId())
            .append("dataResourceId", getDataResourceId())
            .append("templateDataResourceId", getTemplateDataResourceId())
            .append("dataSourceId", getDataSourceId())
            .append("statusId", getStatusId())
            .append("privilegeEnumId", getPrivilegeEnumId())
            .append("serviceName", getServiceName())
            .append("customMethodId", getCustomMethodId())
            .append("contentName", getContentName())
            .append("description", getDescription())
            .append("localeString", getLocaleString())
            .append("mimeTypeId", getMimeTypeId())
            .append("characterSetId", getCharacterSetId())
            .append("childLeafCount", getChildLeafCount())
            .append("childBranchCount", getChildBranchCount())
            .append("createdDate", getCreatedDate())
            .append("createdByUserLogin", getCreatedByUserLogin())
            .append("lastModifiedDate", getLastModifiedDate())
            .append("lastModifiedByUserLogin", getLastModifiedByUserLogin())
            .append("lastUpdatedStamp", getLastUpdatedStamp())
            .append("lastUpdatedTxStamp", getLastUpdatedTxStamp())
            .append("createdStamp", getCreatedStamp())
            .append("createdTxStamp", getCreatedTxStamp())
            .toString();
    }
}
